<template>
	<view>
		<view v-if="type==1">
			<web-view src="http://47.94.255.121/sn-lm-chart/"></web-view>
		</view>
		<view v-if="type==2" class="home-container">
			<div>
				<!--		<view class="view-a" :style="'background: url(' + imageUrlPrefix + 'home/top-back.png);background-size: 100% 65%;background-repeat: no-repeat;'">-->
				<!--		</view>-->
				<view class="title-word">数据看板</view>
				<StatOne></StatOne>
				<StatTwo></StatTwo>
				<StatThree></StatThree>
				<StatFour></StatFour>
				<StatFive></StatFive>
				<StatSix></StatSix>
			</div>
		</view>
	</view>
	
</template>


<script>
	import StatOne from "./stat-one";
	import StatTwo from "./stat-two";
	import StatThree from "./stat-three";
	import StatFour from "./stat-four";
	import StatFive from "./stat-five";
	import StatSix from "./stat-six";

	export default {
		components: {
			StatOne,
			StatTwo,
			StatThree,
			StatFour,
			StatFive,
			StatSix
		},
		data() {
			return {
				imageUrlPrefix: this.$helper.default.imageUrl,
				orderNum: {},
				hospitalServeArr: [],
				type:1
			};
		},
		onShow() {
			// this.$api.boardRevenue({ dateType:1 }).then(res => {
			// 	this.orderNum = res.data;
			// });
		},
		methods: {
			toHomeServe() {
				wx.navigateToMiniProgram({
					appId: 'wx2558a6407d81ef4f',
					//path: '',
					success(res) {
						console.log(res)
					},
					fail(res) {
						console.log(res)
					}
				})
			},
			toOrder() {
				uni.navigateTo({
					url: '/pages/order/edit/index?showConfirm=1'
				});
			},
			toOrderList() {
				uni.navigateTo({
					url: '/pages/order/index?currentIndex=2'
				});
			}
		}
	};
</script>

<style lang="scss" scoped>
	@import './index.scss';
</style>